<?php

namespace app\model;

use think\Model;

class Menu extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'menu';

    // 定义关联方法，与Right模型关联
    public function rights()
    {
        return $this->hasMany(Right::class, 'right_menu_id');
    }
}
